Einhugur macOS Bridge plugin.

EinhugurCoreBridge.NSDictionary Class

An object representing a static read only collection of key-value pairs, containing Cocoa objects.

EinhugurCoreBridge.NSObject
   NSDictionary

class EinhugurCoreBridge.NSDictionary

Constructors

NSDictionary (private) This constructor is private since you cannot create instance of this class directly.

Properties

ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
CountReturns number of key value pairs in the dictionary.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

shared CastDoes deep cast on incoming NSObject to NSDictionary
DoubleForKeyReturns Double for a given key.
shared FromIntegerPtrConstructs NSDictionary object from Integer handle coming from declares or 3rd party plugin.
GetKeysReturns a new NSArray containing the dictionary’s keys, or an empty array if the dictionary has no entries.
GetValuesReturns a new NSArray containing the dictionary’s values, or an empty array if the dictionary has no entries.
IntegerForKeyReturns Integer for a given key.
shared IsNSDictionaryReturns true if the NSObject under the hood is NSDictionary or derived from NSDictionary.
ObjectForKeyReturns NSObject for a given key, or nil if key was not found.
ObjectForKeyReturns NSObject for a given string key, or nil if key was not found.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject
StringForKeyReturns String for a given key.

Constants

Version = 5.0 (Inherited)

Examples

Note when you take out of NSDictionary class then you will need to do “deep cast” as in use .Cast like for example NSImage.Cast to cast the objects if you want to get them as anything but base NSObject.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit